home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 - Inside Community Club / Acrobat Pro 6 D.bin / installer / Data1.cab / HTML2PDF.api / EXVW / 4502 < prev    next >
Encoding:
Text File  |  2003-05-15  |  5.8 KB  |  162 lines

  1. gStrInputEncoding        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/InputEncoding';
  2. gStrDefault                = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Default';
  3. gStrFontSettings        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSettings';
  4. gStrLanguageScript        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/LanguageScript';
  5. gStrChange                = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Change';
  6. gStrBodyText            = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/BodyText';
  7. gStrHeadings            = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/Headings';
  8. gStrPreFormatted        = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/PreFormatted';
  9. gStrBaseFontSize        = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/BaseFontSize';
  10. gStrFontEmbedding        = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontEmbedding';
  11. gStrFontSize            = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSize';
  12. gStrEmbedFonts            = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/EmbedFonts';
  13. gStrNoSelection            = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/NoSelection';
  14.  
  15. gIndentWidth  = gGap;
  16.  
  17. gChangeButtonWidth = gGap + zstring_width( zstring: gStrChange ) + gGap;
  18.  
  19. gSpaceBetweenPopupAndButton = gMarginWidth + (gGap * 2);
  20.  
  21. gLangaugeScriptPopupWidth = 
  22.     max    ( zstring_width( zstring: '$$$IDS_LANG_SCRIPT_WESTERN' )
  23.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_JAPANESE' )
  24.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_TRAD' )
  25.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_SIMP' )
  26.         , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_KOREAN' )
  27.         );
  28.  
  29. gDefaultEncodingPopupWidth = 
  30.     max    ( zstring_width( zstring: '$$$IDS_ENCODING_WESTERN' )
  31.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_JAPANESE' )
  32.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_TRAD' )
  33.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_SIMP' )
  34.         , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_KOREAN' )
  35.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCJP' )
  36.         , zstring_width( zstring: '$$$IDS_ENCODING_SHIFTJIS' )
  37.         , zstring_width( zstring: '$$$IDS_ENCODING_JIS' )
  38.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCCN' )
  39.         , zstring_width( zstring: '$$$IDS_ENCODING_GBK' )
  40.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCTW' )
  41.         , zstring_width( zstring: '$$$IDS_ENCODING_BIG5' )
  42.         , zstring_width( zstring: '$$$IDS_ENCODING_EUCKR' )
  43.         , zstring_width( zstring: '$$$IDS_ENCODING_ISO2022KR' )
  44.         , zstring_width( zstring: '$$$IDS_ENCODING_JOHAB' )
  45.         , ( gLangaugeScriptPopupWidth + gSpaceBetweenPopupAndButton + gChangeButtonWidth )
  46.         );
  47.  
  48. gLangaugeScriptPopupWidth    = gDefaultEncodingPopupWidth 
  49.                             - gSpaceBetweenPopupAndButton 
  50.                             - gChangeButtonWidth;
  51.  
  52. gFontSettingsTextWidth = 
  53.     max    ( zstring_width( zstring: gStrLanguageScript )
  54.         , zstring_width( zstring: gStrDefault )
  55.         , ( zstring_width( zstring: gStrBodyText ) + gIndentWidth )
  56.         , ( zstring_width( zstring: gStrHeadings ) + gIndentWidth )
  57.         , ( zstring_width( zstring: gStrPreFormatted ) + gIndentWidth )
  58.         ) + max_char_width();
  59.  
  60. gFaceNameEditWidth    = gDefaultEncodingPopupWidth + gMarginWidth + (gGap * 2);
  61.  
  62. gFontSizeWidth = max_char_width() * 3;
  63.  
  64.  
  65. dialog(  )
  66. {
  67.     view( align_children: align_left )
  68.     {
  69.         cluster( name: gStrInputEncoding )
  70.         {
  71.             view( align_children: align_row )
  72.             {
  73.                 view( align_children: align_row )
  74.                 {
  75.                     view( align_children: align_left, width: gFontSettingsTextWidth )
  76.                     {
  77.                         static_text( item_id: 'st01', name: gStrDefault, next_tab: 'inec' );
  78.                     }
  79.                     view( align_children: align_right )
  80.                     {
  81.                         popup( item_id: 'inec', width: gDefaultEncodingPopupWidth, next_tab: 'st02' );
  82.                     }
  83.                 }
  84.             }
  85.         }
  86.         cluster( name: gStrFontSettings )
  87.         {
  88.             view( align_children: align_row )
  89.             {
  90.                 view( align_children: align_left, width: gFontSettingsTextWidth )
  91.                 {
  92.                     static_text( item_id:'st02', name: gStrLanguageScript, next_tab: 'lngs' );
  93.                 }
  94.                 view( align_children: align_left )
  95.                 {
  96.                     popup( item_id: 'lngs', width: gLangaugeScriptPopupWidth, next_tab: 'chag' );
  97.                 }
  98.                 view( alignment: align_fill, align_children: align_right )
  99.                 {
  100.                     button( item_id: 'chag', name: gStrChange, next_tab: 'st03' );
  101.                 }
  102.             }
  103.             view( align_children: align_row )
  104.             {
  105.                 view( align_children: align_row, width: gFontSettingsTextWidth )
  106.                 {
  107.                     gap( width: gIndentWidth );
  108.                     static_text( item_id: 'st03', name: gStrBodyText, next_tab: 'btfn' );
  109.                 }
  110.                 view( align_children: align_left )
  111.                 {
  112.                     edit_text( item_id: 'btfn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st04' );
  113.                 }
  114.             }
  115.             view( align_children: align_row )
  116.             {
  117.                 view( align_children: align_row, width: gFontSettingsTextWidth )
  118.                 {
  119.                     gap( width: gIndentWidth );
  120.                     static_text( item_id: 'st04', name: gStrHeadings, next_tab: 'hdfn' );
  121.                 }
  122.                 view( align_children: align_left )
  123.                 {
  124.                     edit_text( item_id: 'hdfn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st05' );
  125.                 }
  126.             }
  127.             view( align_children: align_row )
  128.             {
  129.                 view( align_children: align_row, width: gFontSettingsTextWidth )
  130.                 {
  131.                     gap( width: gIndentWidth );
  132.                     static_text( item_id: 'st05', name: gStrPreFormatted, next_tab: 'pffn' );
  133.                 }
  134.                 view( align_children: align_left )
  135.                 {
  136.                     edit_text( item_id: 'pffn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st06' );
  137.                 }
  138.             }
  139.         }
  140.         cluster( name: gStrFontSize )
  141.         {
  142.             view( align_children: align_row )
  143.             {
  144.                 view( align_children: align_row, width: gFontSettingsTextWidth )
  145.                 {
  146.                     static_text( item_id: 'st06', name: gStrBaseFontSize, next_tab: 'btps' );
  147.                 }
  148.                 view( align_children: align_left, width: gFaceNameEditWidth )
  149.                 {
  150.                     edit_text( item_id: 'btps', PopupEdit: true, numeric: true, width: gFontSizeWidth, next_tab: 'embp' );
  151.                 }
  152.             }
  153.         }
  154.         cluster( name: gStrFontEmbedding )
  155.         {
  156.             view( align_children: align_row )
  157.             {
  158.                 check_box(item_id: 'embp', name: gStrEmbedFonts );
  159.             }
  160.         }
  161.     }
  162. }